/* AclEntity - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
package net.da.core.entity;

import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="acls")
public class AclEntity extends PersistentObjectEntity {

    private Boolean isInternal;
    private String description;
    private String name;

    @OneToMany(mappedBy="acl")
    private Collection<UsersObjectsOperationsEntity> usersObjectsOperations;

    @OneToOne(mappedBy="acl")
    @JoinColumn(name="object_id", nullable=false)
    private BusinessObjectEntity object;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public Boolean isInternal() {
        return isInternal;
    }

    public void setInternal(Boolean isInternal) {
        this.isInternal = isInternal;
    }

    public Boolean getIsInternal() {
        return isInternal;
    }

    public void setIsInternal(Boolean isInternal) {
        this.isInternal = isInternal;
    }

    public BusinessObjectEntity getSysObjectEntity() {
        return object;
    }

    public void setSysObjectEntity(BusinessObjectEntity object) {
        this.object = object;
    }

    public Collection<UsersObjectsOperationsEntity> getUsersObjectsOperations() {
        return usersObjectsOperations;
    }

    public void setUsersObjectsOperations(Collection<UsersObjectsOperationsEntity> usersObjectsOperations) {
        this.usersObjectsOperations = usersObjectsOperations;
    }

}
